package com.obixlabs.kalua.domainmodel.list;

import com.obixlabs.kalua.domainmodel.BaseIdentifier;

public class ShoppingListEditionId extends BaseIdentifier {
	
	private ShoppingListId listId;
	private Integer version;
	
	public ShoppingListEditionId(	final ShoppingListId listId, 
													final Integer version) {
		super();
		setListId(listId);
		setVersion(version);
	}

	public ShoppingListId getListId() { return this.listId; }
	private void setListId(ShoppingListId listId) { this.listId = listId; }

	public Integer getVersion() { return this.version; }
	private void setVersion(Integer version) { this.version = version; }

	@Override
	protected Object[] getConstituents() 
	{ return new Object[] {this.listId, this.version}; }	
}